package com.lf.api.vo;

public class MessageResult {

	private int code;
	private String msg;
	private Object data;
	
	public MessageResult() {
		super();
	}
	public MessageResult(int code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	public int getCode() {
		return code;
	}
	public MessageResult setCode(int code) {
		this.code = code;
		return this;
	}
	public String getMsg() {
		return msg;
	}
	public MessageResult setMsg(String msg) {
		this.msg = msg;
		return this;
	}
	
	public static MessageResult getInstance(){
		return new MessageResult();
	}
	
	public Object getData() {
		return data;
	}
	public MessageResult setData(Object obj) {
		this.data = obj;
		return this;
	}


	public static final MessageResult SUCCESS = new MessageResult(0, "success");
	public static final MessageResult SYSTEM_ERROR = new MessageResult(1, "exception");
	public static final MessageResult PARAM_ERROR = new MessageResult(2, "param error");
}
